package com.hnevc.foodserverapi.dao;


import com.hnevc.foodserverapi.pojo.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UsersMapper {
    //登录接口
    @Select("select * from t_users where telephone=#{telephone} and password=#{password}")
    List<Users> login(Users users);
    //注册接口
    @Insert("insert into t_users values (null,#{name},#{telephone},#{password})")
    int register(Users user);
}
